pp108 : Setting Properties of Conditions in a Decision Table

Setting Properties of Conditions in a Decision Table

This topic describes the properties set for the conditions of a rule, while building a decision table.


The following table describes the properties that are set on the condition of a rule, while building a decision table.

Table 1. Fields on the Property Page of a Condition

Field

Description

Display As

Short description for the condition that you want to appear in the condition column of the rule

XPath

Contains the XPath of the attribute

Value Type

Contains the type of value for the condition to evaluate.

  • Single Value - Select this to provide a single value to the attribute.
  • String Value - Select this to provide a string value to the attribute.
  • Min-Max Pair - Select this to provide a range of values. For Example: To use the values between 10 and 20, type 10 and 20 respectively, in the text boxes.
  • Table of Values - Select this to provide multiple values to the attribute. Click and add values in the text boxes.
  • Simple Expression - Select this to provide value as a simple expression. Select the operator from the operator list and provide the value to build the expression.
  • Expression - Select this to provide value in the form of an expression. Type the entire XPath expression in the Expression text box. For example: If the Customer ID should be between 100 and 200, type the expression as follows:sch:Orders/CustomerID>100 and sch:Orders/CustomerID<200.
  • Condition Template - Select this to use an existing condition template.
    Attention: Drag the required condition template to the rule section. All the parameters of the selected condition template are displayed in the Value and Condition text box on the Properties pane. For information on the procedure to create a condition template, refer to Creating a Condition Template.
    Note:
  • Click attributes icon in the toolbar to drag the attribute to the value text box to build the expression.
  • Based on the Value Type and the values provided, the condition expression text box below will display the XPath expressions.

Value

Based on the value type selected, provide values for the attributes

Condition Expression

Displays the condition expression that is built